<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'listCars.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <h2>购物车</h2>
  <form action="userplaceOrder">
    <table width="640" border="1">
	<s:iterator value="cars" var="c">
		<tr>
			<td><s:property value="name"/></td>
			<td><s:property value="price"/></td>
			<td><s:property value="count"/></td>
			<td><s:property value="time"/>
			<td>
			<img src="upload/<s:property value="photoname"/>"/>
			</td>
			<td>
				<input type="checkbox" name="buylist">
			</td>
			<td><a href="delete_Car.action?bookid=${c.id}">删除</a></td>
			<s:hidden name="ids" value="%{bookid}"></s:hidden>  
		</tr>
	</s:iterator>
	
</table>
<input type="submit" value="购买">
</form>
    <s:debug></s:debug>
  </body>
</html>
